package cn.itsource.org.mapper;

import cn.itsource.org.domain.depart;
import cn.itsource.org.query.DepartQuery;

import java.util.List;

public interface DeparMapper {
   void add(depart depart);
   void delete(Long id);
   void update(depart depart);
   List<depart> findAll();
   depart findById(Long id);
//   分页查询数量
    Integer queryByCount(DepartQuery query);
//    查询分页数据
    List<depart> queryByPage(DepartQuery query);
}
